package domain;

import java.util.Scanner;

public class startUp {

	/**
	 * @param args
	 */
	private static DomainController dc;
	private static Scanner sc = new Scanner(System.in);
	
	public static void main(String[] args) {
		// Initialize
		dc = new DomainController();
		
		while(1 == 1){
		// Show Menu
			displayMenu();
		}
	}
	
	private static void newGame() {
		System.out.println("Starting a new game.");
		System.out.println("Creating a character.");
		dc.createPlayer("Hero");
		System.out.printf(dc.displayPlayer());						
	}

	public static void displayMenu(){
		int input = -1;
		
		System.out.println("[Menu - Choose an option]");
		System.out.println("1. New Game");
		System.out.println("2. Display Character Sheet");
		System.out.println("0. Exit");
		
		input = sc.nextInt();
		
		switch (input) {
		case 0:
			System.out.println("System shutdown. Not yet implemented.");
			break;
		case 1:
			newGame();
			break;
		case 2:
			System.out.printf(dc.displayPlayer());
			break;
		default:
			System.out.println("No valid option selected.");
		}
				
	}

}
